﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using FirstLook.ServiceModel.DomainServices.Client.Security;

namespace Agility.LoginUI
{
    public class LoginRegistrationWindowPrompter : AuthorizationPrompter
    {
        public override void RequestAuthentication(Action<object> completionCallback, object userState)
        {
            LoginRegistrationWindow window = new LoginRegistrationWindow();
            window.Show();
            window.Closed += (sender, e) => completionCallback(userState);
        }
    }
}
